#include<stdio.h>
int main()
{
	int a,b;
    double x,y,p;
    scanf("%lf %d %lf %d", &x, &a, &y, &b);
    p = (b*y-a*x)/(b-a);
    printf("%.2lf", p);
    return 0;
}
